<%@ page contentType="text/html;charset=UTF-8"%> 
    
<%@ include file="/framework/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<head>
<script type="text/javascript">
function processInfo(){
	frm.action = "<%=response.encodeURL(Config.getWebPath() + "/servlet/ReportServletForInfo") %>";
    frm.submit();
}

function processOut(){
 	SetValue("year",GetValue("yearSelect"));
	var action = "<%=response.encodeURL(Config.getWebPath() + "/servlet/OutSubHisDataInitServlet") %>";
	frm.action = action;
    frm.submit();
}

function processIn(){
 	SetValue("year",GetValue("yearInSelect"));
	var action = "<%=response.encodeURL(Config.getWebPath() + "/servlet/InSubHisDataInitServlet") %>";
	frm.action = action;
    frm.submit();
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form id=frm action="<%=Config.getSrv()%>" method="post">
<table>
	<tr>
		<td>压库产品进、销、存资金汇总月报</td>
		<td><input type="button" name="button3" class='buttons' value="生成期初数据" onclick='processInfo()'>   </td>
		<td></td>
	</tr>
		<tr>
		<td>历史出库记录查询及导出按年初始化</td>
		<td><select name="yearSelect">
			<option value="2008">2008</option>
			<option value="2009">2009</option>
			<option value="2010">2010</option>
		</select>年  <input type="hidden" name = "year"  /> </td>
		
		<td><input type="button" name="button4" class='buttons' value="生成期初数据" onclick='processOut()'> </td>
	</tr>
	<tr>
		<td>历史入库记录查询及导出按年初始化</td>
		<td><select name="yearInSelect">
			<option value="2008">2008</option>
			<option value="2009">2009</option>
			<option value="2010">2010</option>
		</select>年   </td>
		
		<td><input type="button" name="button4" class='buttons' value="生成期初数据" onclick='processIn()'> </td>
	</tr>
</table>
</form>
</body>
<%@ include file="/framework/foot.jsp"%>
